package com.stormrage.entity.edu.view;

import java.io.Serializable;

public class EduMajorModule implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -1580775599366811295L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private Integer majorId;

	private Integer moduleId;

	// ------------------------------- Fields -------------------------------

	public EduMajorModule() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getMajorId() {
		return majorId;
	}

	public void setMajorId(Integer majorId) {
		this.majorId = majorId;
	}

	public Integer getModuleId() {
		return moduleId;
	}

	public void setModuleId(Integer moduleId) {
		this.moduleId = moduleId;
	}

	// ------------------------------- Fields -------------------------------

	public static EduMajorModule instance(Integer majorId, Integer moduleId) {
		EduMajorModule entity = new EduMajorModule();
		entity.setMajorId(majorId);
		entity.setModuleId(moduleId);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " majorId - " + majorId + " moduleId - " + moduleId;
	}

}
